import KoaRouter from 'koa-router'
import Config from '@/config/Config'
import verifyToken from '@/middlewares/verifyToken'
import { excelColumns, templateData } from '@/common/constants/system/user'
import commonExportTemplate from '@/api/v1/common/file/exportTemplate'
const router = new KoaRouter({
  prefix: `${Config.API_PREFIX}v1/system/user`,
})
router.post(
  '/exportTemplate',
  verifyToken,
  commonExportTemplate({
    fileName: '人员列表',
    excelColumns,
    templateData,
  }),
)
export default router
